<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="css/swiper.css">
  <title>Document</title>
</head>
<style>
  html {
    height: 100%;
  }

  body {
    height: 100%;
  }

  header {
    height: 40%;
  }

</style>

<body>
  <header>
    <div class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <a href="">
            <img src="http://image11.m1905.cn/uploadfile/2017/1030/thumb_1_1660_470_20171030022409371180.jpg" alt="">
          </a>
        </div>
        <div class="swiper-slide">
          <a href="">
            <img src="http://image11.m1905.cn/uploadfile/2017/0728/thumb_1_1660_470_20170728113947859480.jpg" alt="">
          </a>
        </div>
        <div class="swiper-slide">
          <a href="">
            <img src="http://image11.m1905.cn/uploadfile/2017/0907/thumb_1_1660_470_20170907112852617292.jpg" alt="">
          </a>
        </div>
      </div>
      <!-- 如果需要分页器 -->
      <div class="swiper-pagination"></div>

      <!-- 如果需要导航按钮 -->
      <div class="swiper-button-prev"></div>
      <div class="swiper-button-next"></div>

      <!-- 如果需要滚动条 -->
      <div class="swiper-scrollbar"></div>
    </div>
  </header>
  <script src="js/jquery.min.js"></script>
  <script src="js/swiper.js"></script>
  <script>
    var swiper = new Swiper('.swiper-container', {
      pagination: '.swiper-pagination',
      nextButton: '.swiper-button-next',
      prevButton: '.swiper-button-prev',
      paginationClickable: true,
      spaceBetween: 30,
      centeredSlides: true,
      autoplay: 2500,
      autoplayDisableOnInteraction: false
    });
  </script>
</body>

</html>